package com.example.demo.controller;

import io.swagger.annotations.Api;
import lombok.extern.log4j.Log4j2;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "首页")
@Log4j2
@RestController
public class IndexController {
    @GetMapping("")
    public String index() {

        return "<h1>Welcome to springboot-demo</h1>";
    }

}
